<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-COMPATIBLE" content="IE=edge">
    <title>留言板</title>
    <link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.2/css/bootstrap.min.css">
    <script src="http://cdn.bootcss.com/jquery/1.11.2/jquery.min.js"></script>
    <script src="http://cdm.bootcss.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
    <style type="text/css">
        .jianju{margin-bottom: 30px;}
    </style>
</head>

<body>
<div style="text-align: center;">
    <h1>注册</h1>
    {!! Form::open(['url'=>'message/regist']) !!}
    <div class="jianju">
        <label for="user_name">用户名</label>
        <input type="text" name="user_name" id="" value="{{ old('user_name') }}"/>
    </div>
    <div class="jianju">
        <label for="email">邮箱</label>
        <input type="email" name="email" id="" value="{{ old('email') }}"/>
    </div>
    <div class="jianju">
        <label for="password">密码</label>
        <input type="password" name="password" id="" value=""/>
    </div>
    <div class="jianju">
        <label for="sure_password">确认密码</label>
        <input type="password" name="password_confirmation" id="" value=""/>
    </div>
    <div class="jianju">
        <input type="submit" value="注册"/>
        {!! link_to('message/login', '登录'); !!}
    </div>
    {!! Form::close() !!}

    <!-- 错误提示 -->
    @if (count($errors) > 0)
        <div class="alert alert-danger">
            <ul>
                @foreach ($errors->all() as $error)
                    <li>{{ $error }}</li>
                @endforeach
            </ul>
        </div>
    @endif
</div>
</body>
</html>

